.generate-page {
  min-height: 100vh;
  background-color: #f8f8f8;
  padding: 20px;

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    .back-btn,
    .refresh-btn {
      width: 36px;
      height: 36px;
      background: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      color: #666;
    }

    .title {
      font-size: 26px;
      font-weight: bold;
      color: #333;
    }
  }

  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;

    .loading-text {
      margin-top: 20px;
      color: #666;
      font-size: 28px;
    }
  }

  .shake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    padding: 0 30px;

    .shake-icon {
      width: 200px;
      height: 200px;
      margin-bottom: 30px;

      image {
        width: 100%;
        height: 100%;
        transition: transform 0.2s ease;

        &.shaking {
          animation: shake 0.5s ease-in-out;
        }
      }
    }

    .shake-tip {
      margin-bottom: 40px;
      font-size: 32px;
      color: #333;
      text-align: center;
    }

    .generate-btn {
      width: 80%;
      margin-top: 20px;
    }
  }

  .empty-container {
    margin-top: 60px;

    .taroify-empty {
      padding: 20px 0;
    }

    .retry-btn {
      --button-primary-background-color: #ff6b6b;
      --button-primary-border-color: #ff6b6b;
      margin-top: 20px;
      border-radius: 20px;
    }
  }

  .recipes-container {
    margin-top: 10px;
    height: calc(100vh - 80px);

    .recipe-card {
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 15px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);

      .recipe-image {
        width: 100%;
        height: 180px;
        background-color: #eee;
      }

      .recipe-content {
        padding: 15px;

        .recipe-name {
          font-size: 28px;
          font-weight: bold;
          color: #333;
          margin-bottom: 10px;
          display: block;
        }

        .match-rate {
          display: flex;
          align-items: center;
          margin-bottom: 12px;

          .rate-label {
            font-size: 24px;
            color: #666;
          }

          .rate-value {
            margin-left: 8px;
            font-weight: bold;
            color: #ff6b6b;
            font-size: 26px;
          }
        }

        .recipe-tags {
          margin-bottom: 12px;

          .tag {
            display: inline-block;
            font-size: 24px;
            padding: 3px 8px;
            background: #f8f8f8;
            color: #666;
            border-radius: 4px;
            margin-right: 6px;
            margin-bottom: 6px;

            &.vegetarian {
              background: #e8f5e9;
              color: #4caf50;
            }
          }
        }

        .recipe-ingredients {
          margin-bottom: 15px;

          .ingredients-label {
            font-size: 24px;
            color: #666;
            margin-bottom: 5px;
            display: block;
          }

          .ingredients-list {
            font-size: 24px;
            color: #333;
            line-height: 1.5;
          }
        }

        .recipe-action {
          display: flex;
          justify-content: flex-end;

          .view-btn {
            --button-primary-background-color: #ff6b6b;
            --button-primary-border-color: #ff6b6b;
            border-radius: 20px;
            font-size: 24px;

            .taroify-icon {
              margin-right: 4px;
            }
          }
        }
      }
    }
  }
}

@keyframes shake {
  0% {
    transform: translate(0, 0) rotate(0);
  }

  20% {
    transform: translate(-10px, 0) rotate(-5deg);
  }

  40% {
    transform: translate(10px, 0) rotate(5deg);
  }

  60% {
    transform: translate(-10px, 0) rotate(-5deg);
  }

  80% {
    transform: translate(10px, 0) rotate(5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0);
  }
}